import axios from 'axios'
import request from '@/utils/request'
const commonApi = process.env.VUE_APP_COMMON_SERVER
const supersetApi = process.env.VUE_APP_SUPERSET_SERVER
/**
 * @description 获取版本列表
 */
export function getVerList (params) {
  return axios({
    url: `${commonApi}api/v1/version/list`,
    params
  })
}

/**
 * @description 获取版本列表
 */
export function getVersionTree (params) {
  return request({
    url: '/admin-api/api/v2/version/list',
    params
  })
}

/**
 * @description 获取去操列表
 */
export function getChannels (params) {
  return axios({
    url: supersetApi + 'api/v1/appinfo/unionids',
    params
  })
}
